package apIExercise.object;

public class ReplaceAll {
    public static void main(String[] args) {
        String line="abc123def456ghi7";
        line=line.replaceAll("[0-9]","阿芬");
        System.out.println(line);

        String line1="ab阿芬cd阿芬cf阿芬";
        line1=line1.replaceAll("阿芬","[0-9]+");
        System.out.println(line1);


    }
}
